#pragma once

template <typename T>
bool test(const char* name, const T& expected, const T& actual)
{
	bool equal = expected == actual;

	cout << (equal ? "+" : "-") << " TEST " << name << " ";

	if (equal)
	{
		cout << "SUCCESSFUL.";
	}
	else
	{
		cout << "FAILED. Expected: \"" << expected << "\". Actual: \"" << actual << "\".";
	}

	cout << endl;

	return equal;
}
